//
//  YOrderViewCell.m
//  XiangCaoJiaYuan
//
//  Created by long Kan on 17/9/22.
//  Copyright © 2017年 tongj. All rights reserved.
//

#import "YOrderViewCell.h"
@implementation YOrderViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(YOrderModel *)model
{
    [self.headImage sd_setImageWithURL:[NSURL URLWithString:model.user_image] placeholderImage:[UIImage imageNamed:@"抽奖记录_03.png"]];

    self.headImage.userInteractionEnabled = YES;
    self.headImage.clipsToBounds = YES;
    self.headImage.layer.cornerRadius = 20;
    self.Name.text = model.nick_name;
    self.zhuti.text = [NSString stringWithFormat:@"活动主题:%@",model.theme];
    self.dizhi.text = [NSString stringWithFormat:@"地址:%@",model.shop_address];

}
- (IBAction)dianhua:(id)sender {
    NSLog(@"1");
}
@end
